//获取 视频/试题列表
export const getVideoListApi = async (pageNum, doctorName, topicTitle, categoryCode,uploadClassify, wxUserCode) => {
	const {
		data: res
	} = await uni.$http.post('/api/subject/queryListByWXPage', {
		pageNum,
		pageSize: 6,
		doctorName,
		topicTitle,
		categoryCode,
		uploadClassify,
		wxUserCode
	})
	return res
}
export const getCateVideoListApi = async (params) => {
	const {
		data: res
	} = await uni.$http.post('/api/subject/queryListByWXPage', params)
	return res
}

//获取部门列表
export const getdeptListApi = async (id) => {
	const {
		data: res
		// } = await uni.$http.get(`/api/medicineCategory/findSecMedicineCategory/${id}`)
	} = await uni.$http.get('/api/systemDictData/findAllDept')
	return res
}

//试题详情
export const getVideoDetailApi = async (subjectCode) => {
	const {
		data: res
	} = await uni.$http.get(`/api/subject/queryDetailBySubjectCode/${subjectCode}`)
	return res
}
